package cn.stard.org.mapper;

import cn.stard.basic.mapper.BaseMapper;
import cn.stard.org.domain.Employee;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee>  {


    Employee loadByUserName(String username);

    Employee loadByEmail(String email);

    Employee loadByPhone(String phone);

    Employee loadByloginfoId(Long id);

    void removeEmployeerole(Long rId);

    void saveEmployeerole(@Param("id") Long id, @Param("ids") List<Long> ids);

    void removeEmp(Long id);

    List<String> loadOwnPermissionByLogininId(Long id);


    List<Employee> loadByShopId(Long shopId);

    Employee loadByLogininfoId(Long id);
}
